package cn.iocoder.yudao.module.system.dal.mysql.curingemperature;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.curingemperature.CuringEmperatureDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.system.controller.admin.curingemperature.vo.*;

/**
 * 固化温度 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface CuringEmperatureMapper extends BaseMapperX<CuringEmperatureDO> {

    default PageResult<CuringEmperatureDO> selectPage(CuringEmperaturePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<CuringEmperatureDO>()
                .betweenIfPresent(CuringEmperatureDO::getDate, reqVO.getDate())
                .eqIfPresent(CuringEmperatureDO::getBaking1, reqVO.getBaking1())
                .eqIfPresent(CuringEmperatureDO::getBaking2, reqVO.getBaking2())
                .eqIfPresent(CuringEmperatureDO::getBaking3, reqVO.getBaking3())
                .eqIfPresent(CuringEmperatureDO::getBaking4, reqVO.getBaking4())
                .eqIfPresent(CuringEmperatureDO::getBaking5, reqVO.getBaking5())
                .eqIfPresent(CuringEmperatureDO::getBaking6, reqVO.getBaking6())
                .eqIfPresent(CuringEmperatureDO::getBaking7, reqVO.getBaking7())
                .eqIfPresent(CuringEmperatureDO::getBaking8, reqVO.getBaking8())
                .eqIfPresent(CuringEmperatureDO::getZtz1, reqVO.getZtz1())
                .eqIfPresent(CuringEmperatureDO::getZtz2, reqVO.getZtz2())
                .eqIfPresent(CuringEmperatureDO::getZtz3, reqVO.getZtz3())
                .eqIfPresent(CuringEmperatureDO::getZtz4, reqVO.getZtz4())
                .eqIfPresent(CuringEmperatureDO::getZtz5, reqVO.getZtz5())
                .eqIfPresent(CuringEmperatureDO::getZtz6, reqVO.getZtz6())
                .eqIfPresent(CuringEmperatureDO::getZtz7, reqVO.getZtz7())
                .eqIfPresent(CuringEmperatureDO::getZtz8, reqVO.getZtz8())
                .eqIfPresent(CuringEmperatureDO::getRss1, reqVO.getRss1())
                .eqIfPresent(CuringEmperatureDO::getRss2, reqVO.getRss2())
                .eqIfPresent(CuringEmperatureDO::getRss3, reqVO.getRss3())
                .eqIfPresent(CuringEmperatureDO::getRss4, reqVO.getRss4())
                .eqIfPresent(CuringEmperatureDO::getRss5, reqVO.getRss5())
                .eqIfPresent(CuringEmperatureDO::getRss6, reqVO.getRss6())
                .eqIfPresent(CuringEmperatureDO::getRss7, reqVO.getRss7())
                .eqIfPresent(CuringEmperatureDO::getRss8, reqVO.getRss8())
                .betweenIfPresent(CuringEmperatureDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(CuringEmperatureDO::getId));
    }

}